<template>
  <view>
    <my-userinfo v-if="!token"></my-userinfo>
    <my-login v-else></my-login>
  </view>
</template>

<script>
  import {mapState} from 'vuex'
  import badgeMix from '@/mixins/tabbar-badge.js'
  export default {
    mixins: [badgeMix],
    data() {
      return {
        
      };
    },
    computed: {
      ...mapState('my_user',['token'])
    }
  }
</script>

<style lang="scss">

</style>
